package String;

/**
 *
 */
public class TrimDemo {
    public static void main(String[] args) {
        String str="              hello              ";
        str=str.trim();//去掉str两边空白 并存入str
        System.out.println(str);
    }
}
